﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _13._2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Connection myc= new Connection();
            Display myD= new Display();
            myc.MessageArrived += new MessageHeandler(myD.DisplayMessage);
            myc.Connect();
            Console.ReadLine();
        }
    }
}
